/**
 * 
 */
package clids.ex2.filters;

import java.io.File;

/**
 * @author Li0r
 *
 */
public class FileFilter extends AbstractFilter {

	private File fileHandle;
	public FileFilter(String params){
		super(params);
		fileHandle = new File(parameters[0]);
	}
	@Override
	public boolean isValid(String file) {
		
		if(fileHandle.getName().equals(file)){
			return true;
		}
		return false;
	}

}
